  var id = getvl("id");
 $(function(){
 	   if(id!=''){
 	   	 zhanghuxinxi(id);
 	   	 selectGoodsList21();
 	   }else{
 	   	alert("为传入参数");
 	   }
 	  });
 
 function  zhanghuxinxi(id){
   	$.ajax({
		url: urlcore + "/api/userAccount/selectOness?userId="+id,
		type: "get",
		dataType: 'json',
		contentType: "application/json;charset=utf-8",
		success:function(data){
			if (data.success == true) {
              $("#zhanghuxinxi").html("&yen;"+data.data.balanceMoney);
           
			}
		},
		error:function() {
			/* Act on the event */
			alert("error");
		}
	});	
}


 
  var currentPage1=1;
    var currentPage2=1;
      var currentPage3=1;
        var currentPage4=1;
        var ss=0;
        var ss2=0;
        var ss3=0;
        var ss4=0;
        
  function selectGoodsList21(){
  	  currentPage2=1;
       currentPage3=1;
      currentPage4=1;
         ss2=0;
         ss3=0;
        ss4=0;
         $("#zijingguanlitixians2").html("");
            $("#zijingguanlitixians3").html("");
               $("#zijingguanlitixians4").html("");
           if(currentPage1==1 || currentPage1==2 || ss!=0){
               	$.ajax({
		url: urlcore + "/api/cashRecord/selectCashRecordByWithdrawStatus2?current="+currentPage1+"&withdrawStatus=0&userId="+id,
		type: "get",
		dataType: 'json',
		contentType: "application/json;charset=utf-8",
		success:function(data){
			if (data.success == true) {
				ss=data.data.list.length;
				$.each(data.data.list, function(y,n) {
						    var withdraw_status2="";
						    if(n.withdrawStatus==1){
						    	withdraw_status2="处理中";
						    }else if(n.withdrawStatus==2){
						    	withdraw_status2="失败";
						    }else if(n.withdrawStatus==3){
						    		withdraw_status2="已打款";
						    }
							var zijingguanlitixians=' <div class="a_bank_informs clearfix">'+
'	            <ul>'+
'	                <li><h5>'+n.money+'</h5></li>'+
'	                <li>'+n.title+'</li>'+
'	                <li>'+n.gmtDatetime+'</li>'+
'	            </ul>'+
'	            <span class="a_chuliing">'+withdraw_status2+'</span>'+
'	        </div>';
              $("#zijingguanlitixians").append(zijingguanlitixians);
				});

			} 
		},
		error:function() {
			/* Act on the event */
			alert("error");
		}
	});
               }
	
  }


  function selectGoodsList22(){
  	  currentPage1=1;
       currentPage3=1;
      currentPage4=1;
         ss=0;
         ss3=0;
        ss4=0;
         $("#zijingguanlitixians").html("");
            $("#zijingguanlitixians3").html("");
               $("#zijingguanlitixians4").html("");
           if(currentPage2==1 || currentPage2==2 || ss2!=0){
               	$.ajax({
		url: urlcore + "/api/cashRecord/selectCashRecordByWithdrawStatus2?current="+currentPage2+"&withdrawStatus=1&userId="+uuuuid,
		type: "get",
		dataType: 'json',
		contentType: "application/json;charset=utf-8",
		success:function(data){
			if (data.success == true) {
					ss2=data.data.list.length;
				$.each(data.data.list, function(y,n) {
						    var withdraw_status2="";
						    if(n.withdrawStatus==1){
						    	withdraw_status2="处理中";
						    }else if(n.withdrawStatus==2){
						    	withdraw_status2="失败";
						    }else if(n.withdrawStatus==3){
						    		withdraw_status2="已打款";
						    }
							var zijingguanlitixians=' <div class="a_bank_informs clearfix">'+
'	            <ul>'+
'	                <li><h5>'+n.money+'</h5></li>'+
'	                <li>'+n.title+'</li>'+
'	                <li>'+n.gmtDatetime+'</li>'+
'	            </ul>'+
'	            <span class="a_chuliing">'+withdraw_status2+'</span>'+
'	        </div>';
              $("#zijingguanlitixians2").append(zijingguanlitixians);
				});

			} 
		},
		error:function() {
			/* Act on the event */
			alert("error");
		}
	});
               }
	
  }



  function selectGoodsList23(){
  	  currentPage1=1;
       currentPage2=1;
      currentPage4=1;
         ss=0;
         ss2=0;
        ss4=0;
         $("#zijingguanlitixians").html("");
            $("#zijingguanlitixians2").html("");
               $("#zijingguanlitixians4").html("");
           if(currentPage3==1 || currentPage3==2 || ss3!=0){
               	$.ajax({
		url: urlcore + "/api/cashRecord/selectCashRecordByWithdrawStatus2?current="+currentPage3+"&withdrawStatus=3&userId="+uuuuid,
		type: "get",
		dataType: 'json',
		contentType: "application/json;charset=utf-8",
		success:function(data){
			if (data.success == true) {
					ss3=data.data.list.length;
				$.each(data.data.list, function(y,n) {
						    var withdraw_status2="";
						    if(n.withdrawStatus==1){
						    	withdraw_status2="处理中";
						    }else if(n.withdrawStatus==2){
						    	withdraw_status2="失败";
						    }else if(n.withdrawStatus==3){
						    		withdraw_status2="已打款";
						    }
							var zijingguanlitixians=' <div class="a_bank_informs clearfix">'+
'	            <ul>'+
'	                <li><h5>'+n.money+'</h5></li>'+
'	                <li>'+n.title+'</li>'+
'	                <li>'+n.gmtDatetime+'</li>'+
'	            </ul>'+
'	            <span class="a_chuliing">'+withdraw_status2+'</span>'+
'	        </div>';
              $("#zijingguanlitixians3").append(zijingguanlitixians);
				});

			} 
		},
		error:function() {
			/* Act on the event */
			alert("error");
		}
	});
               }
	
  }





  function selectGoodsList24(){
  	  currentPage1=1;
       currentPage2=1;
      currentPage3=1;
         ss=0;
         ss2=0;
        ss3=0;
         $("#zijingguanlitixians").html("");
            $("#zijingguanlitixians2").html("");
               $("#zijingguanlitixians3").html("");
           if(currentPage4==1 || currentPage4==2 || ss4!=0){
               	$.ajax({
		url: urlcore + "/api/cashRecord/selectCashRecordByWithdrawStatus2?current="+currentPage4+"&withdrawStatus=3&userId="+uuuuid,
		type: "get",
		dataType: 'json',
		contentType: "application/json;charset=utf-8",
		success:function(data){
			if (data.success == true) {
				ss4=data.data.list.length;
				$.each(data.data.list, function(y,n) {
						    var withdraw_status2="";
						    if(n.withdrawStatus==1){
						    	withdraw_status2="处理中";
						    }else if(n.withdrawStatus==2){
						    	withdraw_status2="失败";
						    }else if(n.withdrawStatus==3){
						    		withdraw_status2="已打款";
						    }
							var zijingguanlitixians=' <div class="a_bank_informs clearfix">'+
'	            <ul>'+
'	                <li><h5>'+n.money+'</h5></li>'+
'	                <li>'+n.title+'</li>'+
'	                <li>'+n.gmtDatetime+'</li>'+
'	            </ul>'+
'	            <span class="a_chuliing">'+withdraw_status2+'</span>'+
'	        </div>';
              $("#zijingguanlitixians4").append(zijingguanlitixians);
				});

			} 
		},
		error:function() {
			/* Act on the event */
			alert("error");
		}
	});
               }
	
  }



